package com.kotlin.heimaplayer.ui.fragment

import com.kotlin.heimaplayer.adapter.BaseListAdapter
import com.kotlin.heimaplayer.adapter.HomeAdapter
import com.kotlin.heimaplayer.base.BaseListFragment
import com.kotlin.heimaplayer.base.BaseListPresenter
import com.kotlin.heimaplayer.model.HomeItemBean
import com.kotlin.heimaplayer.presenter.impl.HomePresenterImpl
import com.kotlin.heimaplayer.view.HomeView
import com.kotlin.heimaplayer.widget.HomeItemView

class HomeFragment : BaseListFragment<List<HomeItemBean>, HomeItemBean, HomeItemView>() {
    override fun getSpecialAdapter(): BaseListAdapter<HomeItemBean, HomeItemView> {
        return HomeAdapter()
    }

    override fun getSpecialPresenter(): BaseListPresenter {
        return HomePresenterImpl(this)
    }

    override fun getList(response: List<HomeItemBean>?): List<HomeItemBean>? {
        return response
    }

}